/*
 * @Author: your name
 * @Date: 2021-07-27 09:15:53
 * @LastEditTime: 2021-07-27 10:57:51
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-element-th\src\store\index.js
 */
import Vue from "vue";
import vuex from "vuex";
Vue.use(vuex);

export default new vuex.Store({
  state: {
    themecolor: "black" //默认为20a0ff
  },
  modules: {},
  mutations: {
    setThemeColor(state, curcolor) {
      console.log("vuex", curcolor);
      state.themecolor = curcolor;
    }
  }
});
